package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.quartz.domain.SysJob;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 报告任务规则对象 report_rule_task
 * 
 * @author ruoyi
 * @date 2021-09-23
 */
public class ReportRuleTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 报告类型 */
    @Excel(name = "报告类型")
    private String type;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 目标id */
    @Excel(name = "目标id")
    private Long targetId;

    /** 目标类型 */
    @Excel(name = "目标类型")
    private String targetType;

    /** 任务id */
    @Excel(name = "任务id")
    private Long taskId;

    /** 模板id */
    @Excel(name = "模板id")
    private Long templateId;

    @TableField(exist = false)
    private SysJob job;

    public SysJob getJob() {
        return job;
    }

    public void setJob(SysJob job) {
        this.job = job;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setTargetId(Long targetId) 
    {
        this.targetId = targetId;
    }

    public Long getTargetId() 
    {
        return targetId;
    }
    public void setTargetType(String targetType) 
    {
        this.targetType = targetType;
    }

    public String getTargetType() 
    {
        return targetType;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setTemplateId(Long templateId) 
    {
        this.templateId = templateId;
    }

    public Long getTemplateId() 
    {
        return templateId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("name", getName())
            .append("targetId", getTargetId())
            .append("targetType", getTargetType())
            .append("taskId", getTaskId())
            .append("templateId", getTemplateId())
            .toString();
    }
}
